package com.yuyue.springFramework.note10.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 定义配置类和国际化Bean
 */
@Configuration
public class MyConfigFromDB {
    @Bean
    public MessageSourceFromDb messageSource(){
        return new MessageSourceFromDb();
    }
}
